package com.twentytwok.hospitalsystem22K.controller;

import com.twentytwok.hospitalsystem22K.common.R;
import com.twentytwok.hospitalsystem22K.service.IndexOpenLogService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * IndexOpenLogController.java
 * HospitalSystem22K
 *
 * @author Yuanao
 * @date 2021/11/19 20:08
 */
@RestController
@RequestMapping("/api/indexOpenLog")
@CrossOrigin("*")
public class IndexOpenLogController {

    @Resource
    private IndexOpenLogService indexOpenLogService;

    /**
     * 获取首页访问数总量
     * @return Json
     */
    @RequestMapping("/getCountIndexOpen")
    public R getCountIndexOpen() {
        return indexOpenLogService.getCountIndexOpen();
    }


}
